import main
import models
from flask_migrate import Migrate, MigrateCommand, Manager

manage = Manager(main.app)
migrate = Migrate(main.app, models.db)
manage.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manage.run()